Leetcode 27-12-2024 Q.1014 Best Sightseeing Pair